import qiniu from 'qiniu';

// 七牛的仓库的SK和AK。

qiniu.conf.ACCESS_KEY = 'AK';
qiniu.conf.SECRET_KEY = 'SK';

// 七牛对应的bucket名称
const bucket = '';

export const getToken = () => {
    const putPolicy = new qiniu.rs.PutPolicy({
        scope: bucket
    })
    return putPolicy.uploadToken();
}